package ReefStats::Schema::ReefStatsDB::ActionsAll;

use strict;
use warnings;

use base 'DBIx::Class';

=pod

+---------+-----------------------+------+-----+---------+-------+
| Field   | Type                  | Null | Key | Default | Extra |
+---------+-----------------------+------+-----+---------+-------+
| Day     | date                  | NO   | PRI | NULL    |       |
| Cluster | varchar(100)          | NO   | PRI | NULL    |       |
| Action  | varchar(20)           | NO   | PRI | NULL    |       |
| Number  | mediumint(8) unsigned | NO   |     | NULL    |       |
+---------+-----------------------+------+-----+---------+-------+

=cut

__PACKAGE__->load_components("Core");
__PACKAGE__->table("actions_all");
__PACKAGE__->add_columns(
    day => {
        data_type     => "DATE",
        default_value => undef,
        is_nullable   => 0,
        size          => 10
    },
    cluster => {
        data_type     => 'varchar',
        default_value => undef,
        is_nullable   => 0,
        size          => 100
    },
    action => {
        data_type     => 'varchar',
        default_value => undef,
        is_nullable   => 0,
        size          => 20
    },
    number => {
        data_type     => "MEDIUMINT",
        default_value => undef,
        is_nullable   => 0,
        size          => 8,
    },
);
__PACKAGE__->set_primary_key(qw(day cluster action));

1;
